<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="vm">
        <h1>{{ message }}</h1>
    </div>
    <h1>{{ message }}</h1>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js">
    </script>
<script>
    let vu=new Vue({
        el:'#vm',//挂载点设置
        //插值
        data:{
            message:'Hello VUE.js'
        },
        // 生命周期钩子方法,一一定不能用 箭头函数
        beforeCreate:function(){
            console.log('正在初始化。。。')
        },
        created:function(){
    console.log('创建完成')
        },
        beforeMount:function(){
            console.log('正在进行挂载')
        },
        mounted:function(){
            console.log('挂载完成')
        },
        beforeUpdate:function(){
            console.log('数据正在更新')
        },
        Updated:function(){
            console.log('数据更新完成')
        }
    })
</script>

</body>

</html>